package gof_001_创建型_Create.gof_001_单例_Singleton.gof_011_Serializable;

import java.io.Serializable;

public class User implements Serializable {
    private User(){
    }

    public static User getInstance() {
        User user = User.Inner.USER;
        return user;
    }

    private static class Inner{
        private static final User USER = new User();
    }
}
